package com.summo.demo.service.convert;

import com.summo.demo.entity.UserRoleDO;

public class UserRoleConert {
    public static UserRoleDO toDOWhenSave(Long userId, Long roleId) {
        UserRoleDO userRoleDO = new UserRoleDO();
        userRoleDO.setRoleId(roleId);
        userRoleDO.setUserId(userId);
        return userRoleDO;
    }
}
